<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<a th:href="@{/user/toupdateUser}">
    <button>忘记密码</button>
</a>


<div th:text="${errMsg}"></div>

<form action="userLogin" method="post">
    用户名：
    <input type="text" name="username">
    <br>
    密码:
    <input type="password" name="password">
    <br>
    <input type="checkbox" name="remem"/>记住我</br>

    <button type="submit">登录</button>
</form>
</body>
</html>